//
//  BCaptchaButton.h
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/12/10.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import "QMUIButton.h"

typedef NS_ENUM(NSInteger,BCaptchaButtonStatus) {
    BCaptchaButtonStatusNormal = 0,//发送验证码
    BCaptchaButtonStatusSending = 1,//发送中
    BCaptchaButtonStatusResend = 2,//重新发送
    BCaptchaButtonStatusCountdown = 3,//倒计时中
};

NS_ASSUME_NONNULL_BEGIN
/**
 自定义发送验证码按钮
 */
@interface BCaptchaButton : QMUIButton

/**
 *sendTitle : eg:发送验证码
 */
@property (nonatomic, copy) NSString *sendTitle;

/**
 *resendTitle : 重新发送
 */
@property (nonatomic, copy) NSString *resendTitle;

/**
 *captchaStatus 在设置sendtitle和resendtitle 后设置 避免没有title显示的情况
 */
@property (nonatomic, assign) BCaptchaButtonStatus captchaStauts;




+ (CGSize)defaultSize;

@end

NS_ASSUME_NONNULL_END
